package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

@Component
@DisconfFile(targetDirPath = "disconf", filename = "zhishu.properties")
public class ZhishuProperties {

    private String appsecrect;
    private String tokenUrl;
    private String pubKeyUrl;
    private String corpID;
    private String zxdebtcapConsumeUrl;
    private int encryptType;

    @DisconfFileItem(name = "zhishu.appsecrect", associateField = "appsecrect")
    public String getAppsecrect() {
        return appsecrect;
    }

    public void setAppsecrect(String appsecrect) {
        this.appsecrect = appsecrect;
    }

    @DisconfFileItem(name = "zhishu.tokenUrl", associateField = "tokenUrl")
    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }

    @DisconfFileItem(name = "zhishu.pubKeyUrl", associateField = "pubKeyUrl")
    public String getPubKeyUrl() {
        return pubKeyUrl;
    }

    public void setPubKeyUrl(String pubKeyUrl) {
        this.pubKeyUrl = pubKeyUrl;
    }

    @DisconfFileItem(name = "zhishu.corpID", associateField = "corpID")
    public String getCorpID() {
        return corpID;
    }

    public void setCorpID(String corpID) {
        this.corpID = corpID;
    }

    @DisconfFileItem(name = "zhishu.zxdebtcapConsumeUrl", associateField = "zxdebtcapConsumeUrl")
    public String getZxdebtcapConsumeUrl() {
        return zxdebtcapConsumeUrl;
    }

    public void setZxdebtcapConsumeUrl(String zxdebtcapConsumeUrl) {
        this.zxdebtcapConsumeUrl = zxdebtcapConsumeUrl;
    }

    @DisconfFileItem(name = "zhishu.encryptType", associateField = "encryptType")
    public int getEncryptType() {
        return encryptType;
    }

    public void setEncryptType(int encryptType) {
        this.encryptType = encryptType;
    }
}
